/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hu.szitar.forum.server.dao;

import hu.szitar.forum.common.model.User;
import java.util.List;

/**
 *
 * @author tircsil
 */
public class UserDAO extends BaseDAO<User> {
    private static BaseDAO<User> instance;
    public static BaseDAO<User> getInstance() {
        if( instance == null ){
            instance = new UserDAO();
        }
        return instance;
    }

    @Override
    public List<User> findAll() {
        return find("SELECT u FROM User u");
    }

    @Override
    public User create(User object) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    
    
}
